-- GENERATED SPELL FOR [Singe] --


function spell0_335(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(13375,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_335', 3000, 1)
end

function spell1_335(pUnit, Event) --@Flamestrike,n/a--
pUnit:FullCastSpellOnTarget(12468,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_335', 11000, 1)
end

function Sorts_335(pUnit, Event)
local choix_sorts_335 = math.random(0, 1)
if choix_sorts_335 == 0 then
pUnit:RegisterEvent('spell0_335', 1, 1)
end
if choix_sorts_335 == 1 then
pUnit:RegisterEvent('spell1_335', 1, 1)
end
end

function mob335_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_335', math.random(1500, 3000), 1)
end

function mob335_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob335_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob335_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(335, 1, 'mob335_Action')
RegisterUnitEvent(335, 2, 'mob335_Leave')
RegisterUnitEvent(335, 3, 'mob335_Kill')
RegisterUnitEvent(335, 4, 'mob335_Die')
